#coding=utf-8
'''
Created on Nov 26, 2010
@author: liyinhui
@moduleName: pub.urls
@description:
'''
from django.conf.urls import *
from django.contrib import admin

import views
import config.constants as constants

admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    (r'^$', views.home),
    (r'^verifyCode/$', views.verify_code),
    (r'^check/(user|code)$', views.check_view),
    (r'^login/$',views.logins),
    (r'^logout/$', views.logouts),
    (r'^reg/$', views.reg),
    #(r'^office/$', views.office),
    #
    # Uncomment the admin/doc line below to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
)

#urlpatterns += patterns('',
#    #使用下面语句即可进行静态文件处理,PUB_TEMPLATE_DIR.py中设置,必须是绝对路径
#    (r'^attach/(?P<path>.*)$', 'django.views.static.serve', {'document_root':constants.PUB_MEDIA_SAVE_ROOT}),
#)
